# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: net-print/captdriver/captdriver-9999.ebuild,v 1.0 2014/06/23 08:55:00 itspec.ru Exp $

EAPI="3"

inherit eutils git-2

DESCRIPTION="Driver for Canon CAPT printers"
HOMEPAGE="http://www.linux.org.ru/forum/linux-hardware/4868236#comments"
EGIT_REPO_URI="https://github.com/agalakhov/captdriver.git"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""

RDEPEND="${DEPEND}
        net-print/cups
"

src_unpack() {
    git-2_src_unpack
}

src_configure() {
    cd ${S}
    aclocal; autoheader; automake --add-missing
    autoconf
    ./configure
}

src_compile() {
    emake
}

src_install() {

    dodoc AUTHORS COPYING SPECS

    exeinto "/usr/libexec/cups/filter"
    doexe "${S}/src/rastertocapt" || die

    insinto "/usr/share/cups/model/"
    doins "${S}/Canon-LBP-2900.ppd" || die

}
